package com.pinyoumei.app.adapter;

import android.support.annotation.Nullable;
import android.widget.ImageView;

import com.pinyoumei.app.R;
import com.pinyoumei.app.bean.NoCodeBean;
import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

/**
 * Created by Administrator on 2021-08-07.
 * --------- 日期 ------- 维护人 ------------ 变更内容 --------
 * 2021-08-07        Administrator             新增Person类
 * 2021-08-07        Administrator             增加sex属性
 */
public class RegisterDialogAdapter extends BaseQuickAdapter<NoCodeBean.ResultBean.official_user_listBean, BaseViewHolder> {
    public RegisterDialogAdapter(int layoutResId, @Nullable List<NoCodeBean.ResultBean.official_user_listBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, NoCodeBean.ResultBean.official_user_listBean item) {
        ImageView image = helper.getView(R.id.iv_bg);

        Glide.with(mContext).load( item.getUser_head_img()).into(image);

        helper.setText(R.id.tv_user_nick_name,item.getUser_nick_name());
    }
}
